package api_day13;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

public class Product {
    public int product = 10;
    public boolean flag = true;
    //Lock锁对象
    public ReentrantLock lock = new ReentrantLock();
    //生产者阻塞队列
    public Condition pro = lock.newCondition();
    //消费者阻塞队列
    public Condition con = lock.newCondition();
}
